package com.star.common.email.config;

import com.google.common.collect.Maps;
import org.springframework.boot.autoconfigure.AutoConfiguration;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;

import java.util.Map;

/**
 * 邮件配置
 *
 * @author zhouhengzhe
 */
@AutoConfiguration
public class EmailConfig {
    @Bean("emailPropertiesMap")
    @ConfigurationProperties(prefix = "star.email")
    public Map<String, EmailProperties> emailPropertiesMap() {
        return Maps.newHashMap();
    }
}

